package com.ruoyi.ruoyiqywechat.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 用户权益使用记录对象 user_privilege_usage
 * 
 * @author 好六
 * @date 2025-10-10
 */
public class UserPrivilegeUsage extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 权益类型 */
    @Excel(name = "权益类型")
    private String privilegeType;

    /** 已使用次数 */
    @Excel(name = "已使用次数")
    private Long usedCount;

    /** 最后使用时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最后使用时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastUsedTime;

    /** 重置时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "重置时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date resetTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setPrivilegeType(String privilegeType) 
    {
        this.privilegeType = privilegeType;
    }

    public String getPrivilegeType() 
    {
        return privilegeType;
    }

    public void setUsedCount(Long usedCount) 
    {
        this.usedCount = usedCount;
    }

    public Long getUsedCount() 
    {
        return usedCount;
    }

    public void setLastUsedTime(Date lastUsedTime) 
    {
        this.lastUsedTime = lastUsedTime;
    }

    public Date getLastUsedTime() 
    {
        return lastUsedTime;
    }

    public void setResetTime(Date resetTime) 
    {
        this.resetTime = resetTime;
    }

    public Date getResetTime() 
    {
        return resetTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("privilegeType", getPrivilegeType())
            .append("usedCount", getUsedCount())
            .append("lastUsedTime", getLastUsedTime())
            .append("resetTime", getResetTime())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
